<script setup lang="ts">
const props = defineProps({
  title: {
    type: String,
    default: "第一次公告"
  },
  type: {
    type: String,
    default: ""
  },
  content: {
    type: String,
    default: ""
  },
  imgs: {
    default: []
  }
});
</script>

<template>
  <div class="noticeBox">
    <div class="pointBox">
      <div class="point" />
      <div class="title">{{ props.title }}</div>
      <el-tag class="ml-2" type="success">{{ props.type }}</el-tag>
    </div>
    <div class="contentBox">{{ props.content }}</div>
  </div>
</template>

<style scoped>
.noticeBox {
  width: 100%;
  height: max-content;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.pointBox {
  display: flex;
  justify-content: center;
  align-items: center;
}

.point {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: blue;
}

.point::before {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: blue;
  content: " ";
  animation: toShow 1s ease-in infinite;
}

.title {
  margin-left: 20px;
}

.contentBox {
  text-indent: 2em;
  padding: 10px;
}

@keyframes toShow {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.5);
    opacity: 0.1;
  }
}
</style>
